package com.by.wx.controller;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.by.common.vo.JsonResult;
import com.by.wx.entity.HiResult;
import com.by.wx.service.HiChsService;

@Controller
@RequestMapping("/hig/view/")
public class HiChsController {

	public static Log log = LogFactory.getLog(HiChsController.class);

	@Autowired
	private HiChsService hiChsService;

	@RequestMapping("showBI")
	public String showBI() {
		return "highcharts/entrydemo";
	}

	@RequestMapping("doFindAll")
	@ResponseBody
	public JsonResult doFindAll() {
		List<HiResult> entity = hiChsService.doFindAll();
		return new JsonResult(entity);
	}

}
